{% extends "master.html" %}
{% block subtitle %} - 店铺管理 - 创建支付方式{% endblock %}

{% block extCSS %}
<style type="text/css">
    .atmtemplate{
        display : none;
    }
</style>
{% endblock %}
{% block extJS %}
<script language="JavaScript" type="text/javascript">
//<![CDATA[
    function toSubmit(){
        var msg = [];
        clearMsg();
        $(".err").removeClass('err');

        
        if(!$("#name").val()){
            msg.push('请填写支付方式名称！');
            $("#name").addClass('err');
        }
        
        if(msg.length > 0){
            alertError(msg);
            return false;
        }else{
            $("form").submit();
        }
        
    }
    
    function toCancel(){
         redirect_alert("{{MSG_LEAVE_WITHOUT_SAVING}}","{{url_for('.view')}}");
    }
//]]>
 </script>
{% endblock %}

{% block main %}
<div class="container">
    <div class="row">
        <ol class="breadcrumb">
          <li><a href="{{url_for('bpMas.view')}}">基础信息</a></li>
          <li><a href="{{url_for('bpPtp.view')}}">支付方式管理</a></li>
          <li class="active">创建支付方式</li>
        </ol>
    </div>
    <div class="row">
        <div class="btn-toolbar pull-right">
            <div class="btn-group"><button type="button" class="btn btn-primary" onclick="toSubmit()">{{BTN_SUBMIT}}</button></div>
            <div class="btn-group"><button type="button" class="btn btn-inverse" onclick="toCancel()">{{BTN_CANCEL}}</button></div>
        </div>
    </div>
    <div class="row">
        <form class="" method='POST' action="{{url_for('bpPtp.view',action='add')}}"  enctype="multipart/form-data">
            <fieldset>
                <legend>支付方式基本信息</legend>
                
                <div class="col-md-4">
                    <div class="control-group">
                        <label class="control-label"><label for="shopType">支付方式<span style='color:red'>*</span></label></label>
                        <div class="controls"><input type="text" name="name" id="name" value=""/></div>
                    </div>

                </div>
                <div class="col-md-4">
                    <div class="control-group">
                        <label class="control-label"><label for="remark">备注</label></label>
                        <div class="controls"><textarea name="remark" id="remark"></textarea></div>
                    </div>                    
                </div>
                                                             
            </fieldset>
        </form>
    </div>
    
   
</div>
{% endblock %}